home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 1
/
CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso
/
Aminet
/
comm
/
tcp
/
AmiTCPsdk_40.lha
/
AmiTCP-4.0
/
netinclude
/
lineread.h
< prev
next >
Wrap
C/C++ Source or Header
|
1994-10-03
|
1KB
|
52 lines
#ifndef LINEREAD_H
#define LINEREAD_H \
"$Id: lineread.h,v 4.1 1994/10/03 20:52:20 ppessi Exp $"
/*
* Effective routines for reading line formatted data from network
*
* Copyright © 1994 AmiTCP/IP Group,
* Network Solutions Development, Inc.
* All rights reserved.
*/
/* #include <sys/cdefs.h> */
#ifndef RL_BUFSIZE
#define RL_BUFSIZE 1024
#endif
struct rl_private {
/* struct Library * rlp_SocketBase; */
int rlp_Startp;
int rlp_Bufpointer;
int rlp_Howlong;
int rlp_Buffersize;
#define bool int
bool rlp_Line_completed;
bool rlp_Selected;
#undef bool
char rlp_Saved;
char rlp_Buffer[RL_BUFSIZE + 1];
};
struct LineRead {
char * rl_Line;
enum {RL_LFNOTREQ = 0, RL_LFREQLF = 1, RL_LFREQNUL = 2} rl_Lftype;
int rl_Fd;
struct rl_private rl_Private;
};
/*__BEGIN_DECLS
int lineRead __P((struct LineRead * rl));
void initLineRead __P((struct LineRead * rl, int fd,
int lftype, int buffersize));
__END_DECLS */
int lineRead (struct LineRead * rl);
void initLineRead (struct LineRead * rl, int fd,
int lftype, int buffersize);
#endif /* LINEREAD_H */